﻿Imports System.Drawing
Imports System.Collections
Imports System.ComponentModel
Imports System.Windows.Forms

Namespace Othello
    ''' <summary>
    ''' Summary description for ConfirmDialog.
    ''' </summary>
    Public Class ConfirmDialog
        Inherits System.Windows.Forms.Form
        Private messageLabel As System.Windows.Forms.Label
        Private yesButton As System.Windows.Forms.Button
        Private noButton As System.Windows.Forms.Button

        ''' <summary>
        ''' Required designer variable.
        ''' </summary>
        Private components As System.ComponentModel.Container = Nothing

        Public Sub New(ByVal s As String)
            '
            ' Required for Windows Form Designer support
            '
            InitializeComponent()

            '
            ' TODO: Add any constructor code after InitializeComponent call
            '

            Me.messageLabel.Text = s
        End Sub

        ''' <summary>
        ''' Clean up any resources being used.
        ''' </summary>
        Protected Overrides Sub Dispose(ByVal disposing As Boolean)
            If disposing Then
                If components IsNot Nothing Then
                    components.Dispose()
                End If
            End If
            MyBase.Dispose(disposing)
        End Sub

#Region "Windows Form Designer generated code"
        ''' <summary>
        ''' Required method for Designer support - do not modify
        ''' the contents of this method with the code editor.
        ''' </summary>
        Private Sub InitializeComponent()
            Me.messageLabel = New System.Windows.Forms.Label
            Me.yesButton = New System.Windows.Forms.Button
            Me.noButton = New System.Windows.Forms.Button
            Me.SuspendLayout()
            '
            'messageLabel
            '
            Me.messageLabel.Anchor = CType((System.Windows.Forms.AnchorStyles.Left Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
            Me.messageLabel.Location = New System.Drawing.Point(16, 49)
            Me.messageLabel.Name = "messageLabel"
            Me.messageLabel.Size = New System.Drawing.Size(288, 16)
            Me.messageLabel.TabIndex = 0
            Me.messageLabel.TextAlign = System.Drawing.ContentAlignment.MiddleCenter
            '
            'yesButton
            '
            Me.yesButton.DialogResult = System.Windows.Forms.DialogResult.Yes
            Me.yesButton.Location = New System.Drawing.Point(55, 93)
            Me.yesButton.Name = "yesButton"
            Me.yesButton.Size = New System.Drawing.Size(75, 23)
            Me.yesButton.TabIndex = 2
            Me.yesButton.Text = "Yes"
            '
            'noButton
            '
            Me.noButton.DialogResult = System.Windows.Forms.DialogResult.No
            Me.noButton.Location = New System.Drawing.Point(177, 93)
            Me.noButton.Name = "noButton"
            Me.noButton.Size = New System.Drawing.Size(75, 23)
            Me.noButton.TabIndex = 1
            Me.noButton.Text = "No"
            '
            'ConfirmDialog
            '
            Me.AcceptButton = Me.yesButton
            Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)
            Me.CancelButton = Me.noButton
            Me.ClientSize = New System.Drawing.Size(320, 144)
            Me.ControlBox = False
            Me.Controls.Add(Me.noButton)
            Me.Controls.Add(Me.yesButton)
            Me.Controls.Add(Me.messageLabel)
            Me.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog
            Me.MaximizeBox = False
            Me.MinimizeBox = False
            Me.Name = "ConfirmDialog"
            Me.ShowInTaskbar = False
            Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent
            Me.Text = "Confirm"
            Me.ResumeLayout(False)

        End Sub
#End Region

        Private Sub ConfirmDialog_Load(ByVal sender As Object, ByVal e As EventArgs) Handles MyBase.Load

        End Sub

    End Class
End Namespace
